
from odoo import fields, models


# Global variables used for the warning fields declared on the res.partner
# in the following modules : sale, purchase, account, stock
class ResPartner(models.Model):
    _description = 'Contact'
    _inherit = 'res.partner'

    #以下设置为了翻译,res.company中street,street2,city 都是计算字段，所以在res.company中设置无效
    name = fields.Char(index=True, translate=True)
    street = fields.Char(translate=True)
    street2 = fields.Char(translate=True)
    city = fields.Char(translate=True)

    x_project_code=fields.Char('工程编号')

